//
//  NetworkLink.h
//  Login
//
//  Created by mac on 17/2/21.
//  Copyright © 2017年 ZF. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
#import "DataResponse.h"
#import "LoginDataResponse.h"
#import "UserList.h"
#import "DepartmentList.h"
#import "VersionNumber.h"
#import "Helps.h"
#import "LoginVC.h"

@interface NetworkLink : NSObject
@property (strong, nonatomic) NSString *baseURL;
//判断是否登录
+ (void)ifHasLogin;

//登录接口
+ (void)loginWithName:(NSString *)name Password:(NSString *)password complete:(void (^)(BOOL))handle;

//注销接口
+ (void)logOffUserComplete:(void (^)(BOOL))handle;

//用户列表
+ (void)userLoginListComplete:(void (^)(UserList *list))handle;

//部门列表
+ (void)userDepartmentListComplete:(void (^)(DepartmentList *d))handle;

//获取当前版本
+ (void)getCurrentVersionComplete:(void (^)(NSString *version))handle;

//修改用户
+ (void)setUserName:(NSString *)name Password:(NSString *)password Department:(NSString *)department Id:(NSString *)Id complete:(void (^)(BOOL))handle;
@end
